//
//  UITableView+ILGUIKit.m
//  WangHuo
//
//  Created by zhangtongle on 2017/6/16.
//  Copyright © 2017年 ifeng. All rights reserved.
//

#import "UITableView+ILGUIKit.h"

@implementation UITableView (ILGUIKit)
- (void)ilg_scrollToBottom:(BOOL)animation
{
    if (self.contentSize.height + self.contentInset.top > self.frame.size.height)
    {
        CGPoint offset = CGPointMake(0, self.contentSize.height - self.frame.size.height);
        [self setContentOffset:offset animated:animation];
    }
}

@end
